package cn.yeziji.forum.converter;

import cn.yeziji.forum.entity.ForumUserSettingsEntity;
import cn.yeziji.forum.vo.settings.UserSettingsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 用户配置转换器
 *
 * @author gzkemays
 * @since 2022/4/7 10:08
 */
@Mapper
public interface UserSettingsConverter {
  UserSettingsConverter INSTANCE = Mappers.getMapper(UserSettingsConverter.class);
  /**
   * entity 转换为 vo
   *
   * @param entity po 对象
   * @return vo值
   */
  UserSettingsVO entityConverterToSettingsVo(ForumUserSettingsEntity entity);
}
